﻿using Prism.Mvvm;
using System.ComponentModel.DataAnnotations;

namespace PLCSharp.Views.Homepage
{
    /// <summary>
    /// 画布配置类
    /// </summary>
    public class CanvasConfig : BindableBase
    {
        [Key]
        public Guid ID { get; set; } = Guid.NewGuid();

        public Guid RecipeID { get; set; }


        private int _Rows;
        /// <summary>
        /// Comment
        /// </summary>
        public int Rows
        {
            get { return _Rows; }
            set { SetProperty(ref _Rows, value); }
        }

        private int _Columns;
        /// <summary>
        /// Comment
        /// </summary>
        public int Columns
        {
            get { return _Columns; }
            set { SetProperty(ref _Columns, value); }
        }

    }
}
